﻿<div class="slider">
    @{                                
        int cont = 0;
        foreach (DataAccess.HomeGaleria imagen in ViewBag.galeria)
        {
            cont++;
        <img src="@Url.Action("GetImagen", "Image", new { idImagen = imagen.IdImagen })" width="980" height="454" alt="Slide @cont" />                                                                                           
                                
        }
    }
</div>
<div class="pagination_wrapper">
    <ul class="pagination">
        <li>
            <img src="@Url.Content("~/Content/Images/Slider/arrow-prev.png")" width="24" height="24" alt="Pause" id="arrow_prev" class="arrow"/>
        </li>
        @for (int i = 0; i < cont; i++)
        {
            if (i == 0)
            {
            <li class="current pagination_circle first"><a>@i</a></li>
            }
            else
            {
            <li class="pagination_circle"><a>@i</a></li>                                
            }
        }
        <li>
            <img src="@Url.Content("~/Content/Images/Slider/arrow-next.png")" width="24" height="24" alt="Pause" id="arrow_next" class="arrow"/>
        </li>
    </ul>
</div>